package com.fighYo.trace.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fighYo.trace.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fighYo.trace.entity.query.UserQuery;
import com.fighYo.trace.entity.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fighYo
 * @since 2022-04-04
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    IPage<UserVo> getUserPageList(IPage<UserVo> iPage, @Param("userQuery") UserQuery userQuery);

    UserVo getUserAndInfo(@Param("id") String id);

}
